package com.zy.rpc.common.Serializer;

import com.zy.rpc.common.extension.RpcExtension;


/**
 * @author zy
 * @date 2023/5/3 23:26
 */
public interface Serializer  extends RpcExtension {

    <T> T deserialize(Class<T> clazz,byte[] bytes);

    <T> byte[] serialize(T object);
}
